package com.example.testspring;

/**
 * @Author：anguangpu
 * @Date：2024/5/21 17:29
 * @Description:
 */
public class BusinessException extends RuntimeException{
    private String code;
    private String msg;
     public BusinessException() {
        super();
    }
    public BusinessException(String code, String msg) {
        super(msg);
        this.code = code;
        this.msg = msg;
    }
    public String getCode() {
        return code;
    }
    public void setCode(String code) {
        this.code = code;
    }
    public String getMsg() {
        return msg;
    }
    public void setMsg(String msg) {
        this.msg = msg;
    }

}
